import request from '@/utils/request'

// 订单列表
export function getOrderByStatus(params) {
  return request({
    url: '/order/list',
    method: 'get',
    params
  })
}

// 订单详情
export function getOrderDetails(params) {
  return request({
    url: '/order/orderDetails',
    method: 'get',
    params
  })
}

// 删除订单
export function deleteOrder(data) {
  return request({
    url: '/order',
    method: 'delete',
    data
  })
}

// 获取订单过期时间
export function getOverTime(params) {
  return request({
    url: '/order/overTime',
    method: 'get',
    params
  })
}

//  修改订单过期时间
export function putOverTime(params) {
  return request({
    url: '/order/overTime',
    method: 'put',
    params
  })
}

